package ch.janotta.slawo.ultraquest.rulesets.areas;

import java.util.HashMap;

import ch.janotta.slawo.ultraquest.types.Area;

public class AreaRulesetsFactory {
  private static HashMap<Area, AreaRuleset> RULESETS;

  static {
    RULESETS = new HashMap<>();
    RULESETS.put(Area.PLAINS, new PlainsRuleset());
    RULESETS.put(Area.FOREST, new ForestRuleset());
    RULESETS.put(Area.MARSH,  new MarshRuleset());
  }

  public static AreaRuleset getRulesetInstance(Area area) {
    return RULESETS.get(area);
  }
}
